package test

import io.vertx.kue.queue.*
import io.vertx.kotlin.core.json.*

fun test1() {
    val job = Job()
    job.setId(123)
    job.setDelay(12)
    job.setPriority(Priority.HIGH)
    job.setData(json {
        obj("a" to 1, "b" to 2)
    })
    val json = job.toJson()
    val job2 = Job(json)
    println("job1: ${job.toString()}")
    println(job2.toString())
}

fun main(args: Array<String>) {
    test1()
}